package com.ukao.steward.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * Created by ukaodev on 2017/11/14.
 */

public class ProductRelImgBean extends  BaseListBean<ProductRelImgBean> implements Parcelable {


        /**
         * id : 9
         * orderProId : 914
         * cameraImg : http://cdn.ukaocloud.cn/[{"cameraImg":"android\/productandroid\/productEtQYv1510621538067.jpg"},{"cameraImg":"android\/productandroid\/productxdXxH1510621538067.jpg"},{"cameraImg":"android\/productandroid\/productKtozu1510621538067.jpg"}]
         * compressImg : null
         * createBy : 32
         * createTime : 1510621538000
         */


        private int id;
        private int orderProId;
        private String cameraImg;
        private String compressImg;
        private int createBy;
        private long createTime;
        private   boolean  isCheck;

    public boolean isCheck() {
        return isCheck;
    }

    public void setCheck(boolean check) {
        isCheck = check;
    }

    public ProductRelImgBean(String cameraImg, boolean  isCheck ){
        this.cameraImg=cameraImg;
        this.isCheck=isCheck;
    }

    public ProductRelImgBean(String cameraImg){
            this.cameraImg=cameraImg;
    }
        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getOrderProId() {
            return orderProId;
        }

        public void setOrderProId(int orderProId) {
            this.orderProId = orderProId;
        }

        public String getCameraImg() {
            return cameraImg;
        }

        public void setCameraImg(String cameraImg) {
            this.cameraImg = cameraImg;
        }

        public Object getCompressImg() {
            return compressImg;
        }

        public void setCompressImg(String compressImg) {
            this.compressImg = compressImg;
        }

        public int getCreateBy() {
            return createBy;
        }

        public void setCreateBy(int createBy) {
            this.createBy = createBy;
        }

        public long getCreateTime() {
            return createTime;
        }

        public void setCreateTime(long createTime) {
            this.createTime = createTime;
        }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeInt(this.orderProId);
        dest.writeString(this.cameraImg);
        dest.writeString(this.compressImg);
        dest.writeInt(this.createBy);
        dest.writeLong(this.createTime);
        dest.writeByte(this.isCheck ? (byte) 1 : (byte) 0);
    }

    protected ProductRelImgBean(Parcel in) {
        this.id = in.readInt();
        this.orderProId = in.readInt();
        this.cameraImg = in.readString();
        this.compressImg = in.readString();
        this.createBy = in.readInt();
        this.createTime = in.readLong();
        this.isCheck = in.readByte() != 0;
    }

    public static final Creator<ProductRelImgBean> CREATOR = new Creator<ProductRelImgBean>() {
        @Override
        public ProductRelImgBean createFromParcel(Parcel source) {
            return new ProductRelImgBean(source);
        }

        @Override
        public ProductRelImgBean[] newArray(int size) {
            return new ProductRelImgBean[size];
        }
    };
}
